@extends('layouts.tankuang')

@section('content')
    <!--startprint-->
    <form name="add_form" id="add_form" action="{{url('admin/units/add_baowei',$id)}}" method="post" enctype="multipart/form-data">
        <input type="hidden" name="_token" value="{{ csrf_token() }}">
        <div id="frdj">
            <h2 class="text-center mg_b36 mg_t25" style="font-weight: bold;">重点岗位人员登记表</h2>
            <table class="table-form table-border mg-auto" style="width:900px;">
                <tr>
                    <td class="font-bd" width="10%">单位名称</td>
                    <td>{{$re->unit_name}}</td>
                    <td class="font-bd">姓名</td>
                    <td>{{$re->name}}</td>
                    <td class="font-bd">性别</td>
                    <td>
                        {{$re->sex}}
                    </td>
                    <td rowspan="6" style="width:150px;">
                        @if($re->pic != '')
                            <img src="{{ URL::asset('/') }}{{$re->pic}}"  class="fileImg" alt="" width="120px">
                        @endif
                    </td>
                </tr>
                <tr>
                    <td class="font-bd">出生年月</td>
                    <td>
                        {{$re->birthday}}
                    </td>
                    <td class="font-bd">民族</td>
                    <td>
                        {{$re->nation}}
                    </td>
                    <td class="font-bd">籍贯</td>
                    <td>
                        {{$re->native_place}}
                    </td>
                </tr>
                <tr>
                    <td class="font-bd">文化程度</td>
                    <td>
                        {{$re->education}}
                    </td>
                    <td class="font-bd">政治面貌</td>
                    <td>
                        {{$re->political_status}}
                    </td>
                    <td class="font-bd">要害部门</td>
                    <td>
                        {{$re->position}}
                    </td>
                </tr>
                <tr>
                    <td class="font-bd">身份证号</td>
                    <td colspan="3">
                        {{$re->id_number}}
                    </td>
                    <td class="font-bd">联系电话</td>
                    <td>
                        {{$re->phone}}
                    </td>
                </tr>
                <tr>
                    <td class="font-bd">家庭住址</td>
                    <td colspan="3">
                        {{$re->address}}
                    </td>
                    <td class="font-bd">电子邮箱</td>
                    <td>{{$re->email}}</td>
                </tr>
                <tr>
                    <td class="font-bd">人事关系</td>
                    <td>
                        {{$re->guanxi}}
                    </td>
                    <td class="font-bd">上岗时间</td>
                    <td>
                        {{$re->shanggang_time}}
                    </td>
                    <td class="font-bd">离岗时间</td>
                    <td>
                        {{$re->ligang_time}}
                    </td>
                </tr>
                <tr>
                    <td class="font-bd">备注</td>
                    <td colspan="7">
                        {{$re->remark}}
                    </td>
                </tr>
            </table>
            <!--endprint-->
            {{--<div class="wbt mg_t25 mg_b18">
                <span class="font-bd">填报单位：</span>
                <input type="text" class="w250 input_bottom dsp" name="tbdw" value="{{$re->tbdw}}">
                <span class="itv"></span>
                <span class="font-bd">填报人：</span>
                <input type="text" class="w250 input_bottom dsp" name="tbr" value="{{$re->tbr}}">
            </div>--}}
            <div class="wbt mg_t25" style="width:900px;">
                <a id="goToPageB" class="easyui-linkbutton dsp print" data-options="iconCls:'icon-print'" onclick="doPrint()">打印</a>
            </div>
        </div>
    </form>

    <script type="text/javascript">
        function doPrint() {
            bdhtml=window.document.body.innerHTML;
            sprnstr="<!--startprint-->";
            eprnstr="<!--endprint-->";
            prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17);
            prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));
            window.document.body.innerHTML=prnhtml;
            window.print();
        }
    </script>
@stop